/*
 * @Author: your name
 * @Date: 2020-08-20 20:18:10
 * @LastEditTime: 2020-08-20 20:36:33
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \react-exam\src\service\consumer.ts
 */
import request from '../utils/request'

 /* 展示用户数据 */
export let getConsumerList = ()=>{
    return request.get('/user/user');
}

 /* 展示身份数据 */
export let getIdentifyList = ()=>{
    return request.get('/user/identity');
}

 /* 展示api接口权限数据 */
export let getApiAuthority = ()=>{
    return request.get('/user/api_authority');
}

 /* 展示视图权限数据 */
export let getViewAuthority = ()=>{
    return request.get('/user/view_authority');
}

 /* 展示身份和api权限关系 */
export let getIdentityApiAuthorityRelation = ()=>{
    return request.get('/user/identity_api_authority_relation');
}

 /* 展示身份和视图权限关系 */
export let getIdentityViewAuthorityRelation = ()=>{
    return request.get('/user/identity_view_authority_relation');
}
